import request from '@/utils/request'

export function asyncYgxx() {
  return request({
    url: '/system/crm/asyncYgxx',
    method: 'post'
  })
}

export function asyncKhgl(data) {
  return request({
    url: '/system/crm/asyncKhgl',
    method: 'post',
    data: data
  })
}

export function asyncKhggc(data) {
  return request({
    url: '/system/crm/asyncKhggc',
    method: 'post',
    data: data
  })
}

export function asyncCpxx(data) {
  return request({
    url: '/system/crm/asyncCpxx',
    method: 'post',
    data: data
  })
}

export function asyncHtdd(data) {
  return request({
    url: '/system/crm/asyncHtdd',
    method: 'post',
    data: data
  })
}

export function asyncFhd(data) {
  return request({
    url: '/system/crm/asyncFhd',
    method: 'post',
    data: data
  })
}

export function getCurrentDate() {
  return request({
    url: '/system/crm/getCurrentDate',
    method: 'get'
  })
}

export function listFhData(query) {
  return request({
    url: '/system/crm/listFhData',
    method: 'get',
    params: query
  })
}

export function listOrderDetail(query) {
  return request({
    url: '/system/crm/listOrderDetail',
    method: 'get',
    params: query
  })
}

export function addServiceWorkOrder(data) {
  return request({
    url: '/system/crm/addServiceWorkOrder',
    method: 'post',
    data: data
  })
}